package com.kandinfo.base.security.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.kandinfo.base.security.domain.RolePermission;

public interface RolePermissionRepository extends JpaRepository<RolePermission, Long>,
JpaSpecificationExecutor<RolePermission>{
    
    RolePermission findById(Long id);
    //List<RolePermission> findAll();
    List<RolePermission> findByRoleId(Long roleId);
}